home *** CD-ROM | disk | FTP | other *** search
- /*
- * Garbage Generator Version 1.0
- * Coded by RooK
- * Contact Information: rook@forfree.at
- * http://www2.fwi.com/~rook/
- *
- * This will create a string of garbage that can be used for several
- * purposes(overflows, fill disk space, etc...). A user defined string will
- * be appended to the end of the garbage string. Fill free to modify this
- * code for you own needs. All output will be sent the garbage.txt. Just
- * copy/paste it to where ever you wish.
- */
-
- #include <stdio.h>
- #include <stdlib.h>
-
- #define version "Version 1.0"
- FILE * garbage;
-
- void main(void)
- {
- char blah[256];
- int len;
- int count;
-
- printf("--==[ Garbage Generator %s ]==--\n", version);
- printf(" by RooK\n\n\n");
- puts("Enter the string you wish to appear after the garbage: ");
- gets(blah);
- printf("Enter the length of the garbage string: ");
- scanf("%d", &len);
-
- garbage = fopen("garbage.txt", "w");
- for(count = 1; count <= len; count++)
- {
- fputs("x", garbage);
- }
- fprintf(garbage, blah);
- fclose(garbage);
- return;
- }
-
-
-